package study.javaee.practice.service.impl;


import org.springframework.stereotype.Service;
import study.javaee.practice.dao.DrawDao;
import study.javaee.practice.entity.Draw;
import study.javaee.practice.service.DrawService;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DrawServiceImpl implements DrawService {
   @Resource
    private DrawDao drawaapper;

    @Override
    public List<Draw> findLog() {
        List<Draw> dlogs=drawaapper.drawPieLog();
        return dlogs;
    }

    @Override
    public List<Draw> findProject() {
        List<Draw> dprojects=drawaapper.drawProject();
        return dprojects;
    }

    @Override
    public List<Draw> findProjectJoinApply() {
        List<Draw> dprojectJoinApplys=drawaapper.drawProjectJoinApply();
        return dprojectJoinApplys;
    }
}
